<?php
/**
 * index.php 首页控制器
 *
 *
 * @author          hyperblue
 * @version         0.1
 * @copyright       (C) 2011- *
 * @license	        http://www.bingceng.com
 * @lastmodify	    2011-08-10 16:42
 */
 
class index extends Controller {

    public function __construct() {
		parent::__construct();
        $this->content_model = $this->load_model('content');
    }

    public function do_index() {

    }

    public function do_list() {
        $rows = $this->content_model->op_list('', '', $_GET['page'], 1);
		$pages = $this->content_model->list_pages;

        $this->tpl->assign('rows', $rows);
		$this->tpl->assign('pages', $pages);
        $this->tpl->assign('test_array', array(1,2,3));
		$this->tpl->display('index');
    }
    
    public function do_show() {
        echo 'lala';
    }

    public function do_test() {
		echo url_rewrite();
        //echo 'test';
    }
}
?>
